//
//  MyGroupDetailCell.m
//  TrueLove
//
//  Created by 刘康 on 15/1/29.
//  Copyright (c) 2015年 lanou3g.com 蓝鸥科技. All rights reserved.
//

#import "MyGroupDetailCell.h"

@implementation MyGroupDetailCell

- (void)dealloc
{
    [_userImageView release];
    [_userNameLabel release];
    [_titleLabel release];
    [super dealloc];
}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.userImageView = [[UIImageView alloc] init];
        [self.contentView addSubview:_userImageView];
        [_userImageView release];
        
        self.titleLabel = [[UILabel alloc] init];
        [self.contentView addSubview:_titleLabel];
        [_titleLabel release];
        
        self.userNameLabel = [[UILabel alloc] init];
        [self.contentView addSubview:_userNameLabel];
        [_userNameLabel release];
        
    }
    return self;
}

- (void)layoutSubviews
{
    [super layoutSubviews];
    _userImageView.frame = CGRectMake(5, 5, self.contentView.frame.size.width / 8, self.contentView.frame.size.height - 10);
    _titleLabel.frame = CGRectMake(self.contentView.frame.size.width / 8 + 10, 5, self.contentView.frame.size.width * 5/ 6 , self.contentView.frame.size.height / 2);
    _userNameLabel.frame = CGRectMake(self.contentView.frame.size.width / 8 + 10, self.contentView.frame.size.height / 2 + 10,self.contentView.frame.size.width * 5 / 6 , self.contentView.frame.size.height / 2 - 15);
}



- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
